<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台登录-X-admin1.1</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="backstageCSSandJS/css/font.css">
	<link rel="stylesheet" href="backstageCSSandJS/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="backstageCSSandJS/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="backstageCSSandJS/js/xadmin.js"></script>

</head>
<body>
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form" action="ns.do?op1=deptAdd" method="post">
 				
 					  <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>岗位名称
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="postname" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input">
                    </div>

                </div>	
                	  <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>岗位职责
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="postWork" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input">
                    </div>

                	</div>		

 					 <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                    </label>
                    <button  class="layui-btn" id="button01" lay-filter="add" lay-submit="">
                       	 增加
                    </button>
                </div>

            </form>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 --> 
    <script>
    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
    $('#button01').on('click', function(){
    	parent.location.reload();
        parent.layer.close(index); //执行关闭
    });
    </script>
</body>
</html>